<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box {
            margin: 100px auto 0;
            background: #ddd;
            width: 800px;
            text-align: center;
            font-size: 50px;
            height: 300px;
        }
    </style>
</head>

<body>
    <!-- 3.倒计时 -->
    <div id="box">
    </div>

    <script src="../js/1.js">

    </script>
    <script>
        let date1 = new Date("2020-6-30 0:0:0");
        // console.log(date1.toLocaleDateString)
        let a = new Date("2020-6-30 0:0:0").toLocaleDateString()
        // console.log(a)
        setInterval(function () {
            box.innerHTML = "距离" + a + "还有" + jj(date1)
        }, 1000)


    </script>
</body>

</html>